<?php
class ControllerWxJson extends Controller{
    public function index()
    {
//      echo $this->request->cookie['wx_openid'];
//      echo $this->session->data['wx_openid'];
        $open_id=$this->request->cookie['wx_openid'];

        if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) {
            $this->template = $this->config->get('config_template') . '/template/wx/json.tpl';
        } else {
            $this->template = 'default/template/wx/json.tpl';
        }


        $this->response->setOutput($this->render());

    }
}
?>